import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia'
import piniaPluginpersistedstate from 'pinia-plugin-persistedstate'
//引入粒子库
import Particles from "@tsparticles/vue3";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {loadFull} from "tsparticles";

 import axios from 'axios'

// vue.config.productionTip = false

import  './unit/axios.config'


const pinia = createPinia()
pinia.use(piniaPluginpersistedstate)


const app = createApp(App)
app.use(ElementPlus)
app.use(createPinia())
    .use(router)
    .use(Particles,{
        init: async engine => {
             await loadFull(engine);
    }})
     .config.globalProperties.$http = axios
app.mount('#app')
